package com.sk.sqd;

/**
 * 具体享元对象
 */
public class ConcreteFlyweight implements Flyweight {

    /**
     * 内部状态
     */
    private String internalStatus = null;

    public ConcreteFlyweight(String internalStatus) {
        this.internalStatus = internalStatus;
    }

    public ConcreteFlyweight() {
    }

    @Override
    public void operator(String extrinsicStatus) {
        System.out.println("internalStatus = " + this.internalStatus);
        System.out.println("extrinsicStatus = " + extrinsicStatus);
    }

}
